import React, {useState, useEffect} from 'react'
// http://8.142.171.141:8080/school-news/news/pageList
// 组件(声明、属性、状态、生命周期)
// 组件复用
const Right = (props)=>{
    console.log(props);
    return <div>
        <h2>{props.title}</h2>
        <p>{props.content}</p>
        {props.children}
    </div>
}

const App = () => {
    return (
        <div>
            <Right content='center' title='title'>
                <h2>自定义内容</h2>
            </Right>
        </div>
    )
}

export default App
